package com.xnyzc.lhy.order.entity.cms.driver;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 司机管理添加的用户信息实体类，用于接收前台传来的信息
 * @author zhaolijie
 * @date 2019-08-23 18:21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="接收司机添加的信息", description="接收司机添加的信息")
public class DriverUserInfo  implements Serializable{

    private static final long serialVersionUID = -288037385402384698L;
    @ApiModelProperty(value = "用户ID(使用Snowflake生成)")
    private Long driverId;

    @ApiModelProperty(value = "手机号码")
    private String driverPhone;

    @ApiModelProperty(value = "登录账号")
    private String loginAccount;

    @ApiModelProperty(value = "账号登录密码")
    private String loginPassword;

    @ApiModelProperty(value = "用户姓名")
    private String driverName;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private Long avatarFileId;

    @ApiModelProperty(value = "1：男，2：女，3：保密,4:未设置")
    private String sex;

    @ApiModelProperty(value = "电子邮件")
    private String email;

    @ApiModelProperty(value = "邮箱绑定状态（0：未绑定；1：已绑定）")
    private Integer emailStatus;

    @ApiModelProperty(value = "0:正常用户;1:黑名单用户;2:用户已注销")
    private Integer isBlocked;

    @ApiModelProperty(value = "0:未上传;1:待审核,2:审核通过;4:审核失败；5：身份证过期；")
    private Integer identityVerfied;

    @ApiModelProperty(value = "0:未上传;1:待审核,2:审核通过;4:审核失败；5：驾照过期；")
    private Integer driveVerfied;

    @ApiModelProperty(value = "微信openId")
    private String openId;

    @ApiModelProperty(value = "用户token")
    private String driverToken;

    @ApiModelProperty(value = "用户盐")
    private String salt;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "民族（参加字典表）")
    private Integer nationality;

    @ApiModelProperty(value = "用户等级")
    private String driverLevel;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "常住地址")
    private String address;

    @ApiModelProperty(value = "紧急联系人")
    private String emergencyContact;

    @ApiModelProperty(value = "紧急联系人电话")
    private String emergencyMobile;

    @ApiModelProperty(value = "紧急联系人地址")
    private String emergencyAddress;

    @ApiModelProperty(value = "身份证正面图片")
    private Long identityPositiveFileId;

    @ApiModelProperty(value = "身份证反面照片")
    private Long identityOtherFileId;

    @ApiModelProperty(value = "身份证到期日期")
    private Date identityDueDate;

    @ApiModelProperty(value = "身份证号")
    private String identityNumber;

    @ApiModelProperty(value = "证件类型.1:身份证,2护照,3.其他")
    private Integer identityType;

    @ApiModelProperty(value = "户籍所在地")
    private String identityAddress;

    @ApiModelProperty(value = "驾驶证正面图片")
    private Long driveLicenseFileId;

    @ApiModelProperty(value = "驾驶证另外一面")
    private Long driveOtherLicenseFileId;

    @ApiModelProperty(value = "驾驶证编号")
    private String driveLicenseNo;

    @ApiModelProperty(value = "驾驶证起始日期")
    private Date driverStartDate;

    @ApiModelProperty(value = "证件到期时间")
    private Date driveLicenseDuedate;

    @ApiModelProperty(value = "驾照类型")
    private String driveLicenseType;

    @ApiModelProperty(value = "驾驶证发证地")
    private String driveLicenseIssueplace;

    @ApiModelProperty(value = "身份审核通过时间")
    private Date passingDate;

    @ApiModelProperty(value = "身份认证拒绝原因")
    private String identityRefuseReason;

    @ApiModelProperty(value = "驾照认证拒绝原因")
    private String idriveRefuseReason;

    @ApiModelProperty(value = "拉黑原因")
    private String blockedReason;

    @ApiModelProperty(value = "拉黑日期")
    private Date blockedDate;

    @ApiModelProperty(value = "审核类型：0，人工审核。1自动审核")
    private Integer auditType;

    @ApiModelProperty(value = "用户注册城市ID")
    private Integer registerCityId;

    @ApiModelProperty(value = "司机类型（0：个人；1：车队）")
    private Integer driverType;

    @ApiModelProperty(value = "是否同意协议（0：否、1：是）")
    private Integer agreement;

    @ApiModelProperty(value = "总服务分数")
    private Integer totalServiceScore;

    @ApiModelProperty(value = "驾龄")
    private Integer beenDriving;


    @ApiModelProperty(value = "编号")
    @TableId(value="office_id", type = IdType.INPUT)
    private Long officeId;
    @ApiModelProperty(value = "部门名")
    private String officeName;
    @ApiModelProperty(value = "部门Code")
    private String officeCode;

    @ApiModelProperty(value = "父级编号")
    private String parentId;

    @ApiModelProperty(value = "所有父级编号")
    private String parentIds;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "排序")
    private BigDecimal sort;

    @ApiModelProperty(value = "归属区域")
    private String areaId;

    @ApiModelProperty(value = "区域编码")
    private String code;

    @ApiModelProperty(value = "机构类型")
    private String type;

    @ApiModelProperty(value = "机构等级")
    private String grade;


    @ApiModelProperty(value = "负责人")
    private String master;

    @ApiModelProperty(value = "电话")
    private String phone;


    @ApiModelProperty(value = "是否启用")
    private String useable;

    @ApiModelProperty(value = "主负责人")
    private String primaryPerson;

    @ApiModelProperty(value = "副负责人")
    private String deputyPerson;


    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "归属公司文字")
    private String ownershipCompany;

    @ApiModelProperty(value = "归属部门文字")
    private String departmentsOfAttribution;

    @ApiModelProperty(value = "ID(使用Snowflake生成)")
    @TableId(value="info_id", type = IdType.INPUT)
    private Long infoId;

    // 分配车辆字段
    @ApiModelProperty(value = "分配时间")
    private String driverVehicleUpdateTime;

    @ApiModelProperty(value = "车牌号")
    private String vehNo;

    @ApiModelProperty(value = "车辆id")
    private Long vehicleId;

}
